import {Clock} from './clock.js'

export class ExtendedClock extends Clock {
  constructor({template, dom, precision}) {
    super({template, dom})
    this.precision = precision
  }
  start() {
    this.render();
    this.timer = setInterval(
      () => this.render(),
      this.precision
    );
  }
}